realtek: pcs: use per-variant SerDes count
authorJonas Jelonek <[email protected]>
Sat, 13 Dec 2025 09:10:55 +0000 (09:10 +0000)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 12:37:32 +0000 (13:37 +0100)
commit6cf33aacfe9d01903f1662795a28c5a7fc6e2fb7
treea2b29926e574c5da8871ef14c1a05c02f60cfdbe
parenta4d6e10bf2561a39d9bb3c9e622531e8d5c9caf3
realtek: pcs: use per-variant SerDes count

Use a separate configuration field for the number of SerDes for each
variant of the Realtek Otto family. Add this field to the config
structure, assign it and use it during driver probe. This narrows
possible error cases and is needed for upcoming extensions.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c